chrome.action.onClicked.addListener((event) => {
  //https://developer.chrome.com/docs/extensions/reference/api/action?hl=zh-cn#event-onClicked
  //点击操作图标时触发。如果操作具有弹出式窗口，则不会触发此事件。
  chrome.tabs.create({
    //https://developer.chrome.com/docs/extensions/reference/api/tabs?hl=zh-cn
    url: "mediaConverter.html"
  });
})

chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
  // if (request.action === 'transcode') {
  //   console.log(request)
  //   console.log(request.selectedFile)
  // }
});




